﻿using UnityEngine;
using System.Collections;

public class WeaponButtonChange : MonoBehaviour {

    public GameObject normalAttackBtn;
    public GameObject rangeAttackBtn;
    public GameObject gunAttackBtn;

    public static WeaponButtonChange weaponButton;


    // 单例模式要写在Awake里面
    void Awake()
    {
        weaponButton = this;
    }

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
	
	}
    // 返回到枪攻击
    public void ReturnGunAttack()
    {
        gunAttackBtn.SetActive(true);
        rangeAttackBtn.SetActive(false);
        normalAttackBtn.SetActive(false);
    }

    // 返回到武器攻击
    public void ReturnWeaponAttack()
    {
        gunAttackBtn.SetActive(false);
        normalAttackBtn.SetActive(true);
        rangeAttackBtn.SetActive(true);
    }

}
